import request from '@/utils/request'

// 素材管理列表

export function queryMaterialList(params) {
    return request({
        url: '/admin/resourceManage/queryResource',
        method: 'post',
        data: {
            ...params
        }
    })
}

//保存素材
export function saveMaterial(params) {
    return request({
        url: '/admin/resourceManage/saveResource',
        method: 'post',
        data: [...params]
    })
}
// 编辑素材
export function updateMaterial(params) {
    return request({
        url: '/admin/resourceManage/editResource',
        method: 'post',
        data: params
    })
}
